<?xml version="1.0" encoding="UTF-8"?>

<container xmlns="http://symfony.com/schema/dic/services"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

    <parameters>
        <parameter key="security.acl.dbal.provider.class">Symfony\Component\Security\Acl\Dbal\MutableAclProvider</parameter>
        <parameter key="security.acl.dbal.schema.class">Symfony\Component\Security\Acl\Dbal\Schema</parameter>
        <parameter key="security.acl.dbal.schema_listener.class">Symfony\Bundle\SecurityBundle\EventListener\AclSchemaListener</parameter>
    </parameters>

    <services>
        <service id="security.acl.dbal.connection" alias="database_connection" />

        <service id="security.acl.dbal.provider" class="%security.acl.dbal.provider.class%" public="false">
            <argument type="service" id="security.acl.dbal.connection" />
            <argument type="service" id="security.acl.permission_granting_strategy" />
            <argument type="collection">
                <argument key="class_table_name">%security.acl.dbal.class_table_name%</argument>
                <argument key="entry_table_name">%security.acl.dbal.entry_table_name%</argument>
                <argument key="oid_table_name">%security.acl.dbal.oid_table_name%</argument>
                <argument key="oid_ancestors_table_name">%security.acl.dbal.oid_ancestors_table_name%</argument>
                <argument key="sid_table_name">%security.acl.dbal.sid_table_name%</argument>
            </argument>
            <argument type="service" id="security.acl.cache" on-invalid="null" />
        </service>

        <service id="security.acl.dbal.schema" class="%security.acl.dbal.schema.class%">
            <argument type="collection">
                <argument key="class_table_name">%security.acl.dbal.class_table_name%</argument>
                <argument key="entry_table_name">%security.acl.dbal.entry_table_name%</argument>
                <argument key="oid_table_name">%security.acl.dbal.oid_table_name%</argument>
                <argument key="oid_ancestors_table_name">%security.acl.dbal.oid_ancestors_table_name%</argument>
                <argument key="sid_table_name">%security.acl.dbal.sid_table_name%</argument>
            </argument>
            <argument type="service" id="security.acl.dbal.connection" />
        </service>
        <service id="security.acl.dbal.schema_listener" class="%security.acl.dbal.schema_listener.class%" public="false">
            <argument type="service" id="security.acl.dbal.schema" />
        </service>

        <service id="security.acl.provider" alias="security.acl.dbal.provider" />

        <service id="security.acl.cache.doctrine" class="%security.acl.cache.doctrine.class%" public="false">
            <argument type="service" id="security.acl.cache.doctrine.cache_impl" />
            <argument type="service" id="security.acl.permission_granting_strategy" />
        </service>

        <service id="security.acl.cache.doctrine.cache_impl" alias="doctrine.orm.default_result_cache" public="false" />

        <service id="security.acl.permission.map" class="%security.acl.permission.map.class%" public="false"></service>
    </services>
</container>
